home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PsL Monthly 1993 December
/
PSL Monthly Shareware CD-ROM (December 1993).iso
/
prgmming
/
dos
/
try_qb
/
colors.bas
(
.txt
)
< prev
next >
Wrap
QuickBASIC Tokenized Source
|
1989-12-04
|
1KB
|
21 lines
ColorVal
PaletteVal
BackGroundVal
Pause
Draw three boxes and paint the interior of each
box with a different color:
Press ESC to end."
Press any other key to continue.
Restrict additional printed output to the twenty-third line:
PaletteVal is either one or zero:
Set the background color and choose the palette:-
Background =
Palette ="
Wait for a keystroke.
Exit the loop if both palettes have been shown,
or if the user pressed the ESC key:
Exit this loop if all sixteen background colors have been
shown, or if the user pressed the ESC key:o
Restore text mode and
eighty-column screen width.